package com.bee.beemanage.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bee.beemanage.api.entity.output.Dict;
import com.bee.beemanage.api.entity.SysDict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 字典表 Mapper 接口
 * </p>
 *
 * @author 陈国松
 * @since 2023-05-25
 */
@Mapper
public interface SysDictMapper extends BaseMapper<SysDict> {

    Page<Dict>  getDictDetails(Page<Dict> page, @Param("sysDict") SysDict sysDict, @Param("label")String label, @Param("value")String value);

    Page<SysDict> recycleSearch(Page<SysDict> page,@Param("sysDict") SysDict sysDict,@Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime);

    boolean recover(List<String> ids);

    boolean clear();
}
